package com.oa.official.service;

import com.oa.official.entity.system.SysRole;
import com.oa.official.response.Result;
import com.oa.official.vo.system.AssginRoleVo;
import com.oa.official.vo.system.SysRoleQueryVo;

import java.util.List;

public interface SysRoleService {
    Result list(Integer page, Integer limit,SysRoleQueryVo sysRoleQueryVo);

    Result save(SysRole sysRole);

    Result findByRoleId(Long id);

    Result deleteById(Long id);

    Result batchRemove(List<Long> ids);

    Result update(SysRole sysRole);

    Result toAssign(Long userId);
    Result doAssign(AssginRoleVo assginRoleVo);
}